package com.study.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

// @Component 等价于<bean id="user" class="com.study.pojo.User"/>
@Component
public class User {

    // 相当于 <property name="name" value="故里"/>
    @Value("故里")
    public String name;
}
